package com.youkeyi.ddy.cloud.common.api.application.business.hr.approval.instance;

import com.youkeyi.ddy.cloud.common.api.application.business.hr.approval.instance.dto.BusinessApprovalInstanceListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.approval.instance.param.BusinessApprovalInstanceApprovalCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.approval.instance.param.BusinessApprovalInstanceCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.approval.instance.param.BusinessApprovalInstanceListCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessApprovalInstanceCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/approval/fallback")
public class BusinessApprovalInstanceCloudServiceFallback implements BusinessApprovalInstanceCloudService {

    @Override
    public BusinessApprovalInstanceListCloudDto instanceList(BusinessApprovalInstanceListCloudParam param) {
        return new BusinessApprovalInstanceListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent instanceCreate(BusinessApprovalInstanceCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent approval(BusinessApprovalInstanceApprovalCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent revoke(BusinessApprovalInstanceApprovalCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
